package componentes;

import java.util.HashMap;

import android.app.betmein.R;
import android.framework.binding.MethodRepresent;

public class ItemListHelper {
	public static HashMap<Integer, MethodRepresent> createMethodHashMap(int id, final Class<?> cls, final String methodName, final Object owner, final Class ... params ){
		try {
			return new HashMap<Integer, MethodRepresent>(){
				{
					put(R.id.takeSideButton, new MethodRepresent(cls.getDeclaredMethod(methodName, params), owner));
				};
			};
		} catch (NoSuchMethodException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
			return null;
		}
	}
}
